flutter check if string is number dart

80

bool isNumeric(String s) {
 if (s == null) {
   return false;
 }
 return double.tryParse(s) != null;
}

Comments

Submit
0 Comments